<?phpuse Illuminate\Database\Eloquent\Model;class dispatchexpressModel extends Model{	protected $table 		= 'dispatch_express';	public	  $primaryKey	= 'id';	public $appends = ['areas'];    protected function serializeDate($date)    {        return $date->format('Y-m-d H:i:s');    }    public function getAreasAttribute(){        $prov = explode(',', $this->attributes['province_ids']);        $city = explode(',', $this->attributes['city_ids']);        $area = explode(',', $this->attributes['area_ids']);        $areas= areaModel::whereIn('id', array_merge($prov, $city, $area))->limit(20)->get();        $areaStr = [];        foreach ($areas as $k=>$v){            $areaStr[] = $v->name;        }        return implode(',', $areaStr);    }}